import math
def cut(n):
    AB = 1
    for i in range(n):
        OC = math.sqrt(1-(AB/2)*(AB/2))
        CD = 1 - OC
        AB = math.sqrt(math.pow(AB/2,2)+CD*CD) 
    edge = int(6*math.pow(2,n))
    pi = AB*edge/2
    return edge,pi

if __name__ == '__main__':
    times = int(input())          # 割圆次数
    print('分割{}次，边数为{}，圆周率为{:.6f}'.format(times, *cut(times)))          # 圆周率
    print(f'math库中的圆周率常量值为{math.pi:.6f}')